Person: Test AG from 1010: Create
Legal Person As Partner| name | value |
|---|---|
| partnerPersonTradeName | Test AG |
| subscriberFamilyName | Miller |
| subscriberGivenName | Michael |
| subscriberEMailAddress | michael.miller@example.org |
| mailingList | operations-announce |
HTTP GET "/api/hs/office/persons?name=Test+AG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "00ddd2fc-8742-46e5-924c-77749d4c8ccc", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"type" : "SUBSCRIBER",
"mark" : "operations-announce",
"anchor.uuid" : "00ddd2fc-8742-46e5-924c-77749d4c8ccc", // Person: Test AG
"holder" : {
"personType" : "NATURAL_PERSON",
"familyName" : "Miller",
"givenName" : "Michael"
},
"contact" : {
"caption" : "Michael Miller",
"emailAddresses" : {
"main" : "michael.miller@example.org"
}
}
}
EOF
=> status: 201 CREATED 6001b2f5-7d16-4ebc-9a39-710964bb832f
generated on 2026-08-10 01:37:55 for branch